package com.mryang.ladder;

import java.util.Scanner;

/**
 * @ClassName L1_021
 * @Description TODO
 * @Author Genius
 * @Date 2021/2/8 22:36
 */
public class L1_022 {
    public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
        int numberCount = scr.nextInt();
        int[] number = new int[numberCount];
        int oddNumberCount = 0;
        int evenNumberCount = 0;
        for (int i = 0; i < numberCount; i++) {
            number[i] = scr.nextInt();
            if(number[i]%2 != 0){
                oddNumberCount++;
            }else
                evenNumberCount++;
        }
        System.out.println(oddNumberCount + " " + evenNumberCount);
    }
}
